<template>
  <div>
    <top></top>
    article
  </div>
</template>

<script>
import auth from '@/config/auth'
import header from '@/components/header'

export default {
  name: 'articleIndex',
  data () {
    return {}
  },
  components: {
    top: header
  },
  beforeCreate () {
    // 如果没有token的话需要重新登录
    if (!auth.authenticated) {
      this.$router.push('login')
    }
  }
}
</script>
